﻿namespace 依赖注入传染;

public class StorageImpl:IStorage
{
    private readonly IConfig _config;

    public StorageImpl(IConfig config)
    {
        this._config = config;
    }
    public string Save(string serviceName,string content)
    {
        var myconfig = _config.GetConfig(serviceName);
        return $"save {content} to {serviceName} success.";
    }
}